<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../vue.js"></script>
</head>
<body>
    <h1>动态更新标签中内容,通过代理设置对象属性</h1>
    <div id = "box">
    </div>
    <script>
        var obj = {}
        var vm = new Proxy(obj,{
            get(obj,key){
                console.log("get")
                return obj[key]
            },
            set(obj,key,value){
                console.log("set " + key + " " + value )
                obj[key] = value
            }
        })
    </script>
</body>
</html>